package com.winning.util.excelutil.common.exception;

/**
* @Author: nxs@winning.com.cn
* 
* @Description:   自定义异常
* 
* @Date:  2018-06-20 10:30:22
*
*
 **/ 
public class BaseException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	
    private String message;
    private int code = 500;
    
    public BaseException(String message) {
		super(message);
		this.message = message;
	}
	
	public BaseException(String message, Throwable e) {
		super(message, e);
		this.message = message;
	}
	
	public BaseException(String message, int code) {
		super(message);
		this.message = message;
		this.code = code;
	}
	
	public BaseException(String message, int code, Throwable e) {
		super(message, e);
		this.message = message;
		this.code = code;
	}

	public String message() {
		return message;
	}

	public void setMsg(String message) {
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
	
	
}
